package com.ynny.demo14.controller;
import com.ynny.demo14.Service.UserService;
import com.ynny.demo14.entity.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping( "/user")
public class UserContorller {
    @Autowired
    private UserService userService;
    @RequestMapping("/login")
    public R login(String username, String password){

        userService.login(username,password);

        return R.ok(200);

    }



}
